package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人员绩效对象 achievements
 * 
 * @author ruoyi
 * @date 2022-11-13
 */
@TableName("achievements")
public class Achievements extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 用户ID */
    @Excel(name = "员工工号")
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "员工昵称")
    private String userName;

    /** 绩效统计年月 */
    @JsonFormat(pattern = "yyyy-MM")
    @Excel(name = "绩效统计年月", width = 30, dateFormat = "yyyy-MM")
    private Date achievementsDate;

    /** 全勤天数 */
    @Excel(name = "全勤天数")
    private Integer fullAttendanceDays;

    /** 出勤天数 */
    @Excel(name = "出勤天数")
    private Integer attendanceDays;
    /** 加班天数 */
    @Excel(name = "加班天数")
    private Integer overtimeDays;

    /** 绩效得分 */
    @Excel(name = "绩效得分")
    private BigDecimal score;

    /** 每件工资 */
    @Excel(name = "每件工资")
    private BigDecimal pieceMoney;

    /** 生产件数 */
    @Excel(name = "生产件数")
    private Long productionQuantity;
    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getOvertimeDays() {
        return overtimeDays;
    }

    public void setOvertimeDays(Integer overtimeDays) {
        this.overtimeDays = overtimeDays;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setAchievementsDate(Date achievementsDate) 
    {
        this.achievementsDate = achievementsDate;
    }

    public Date getAchievementsDate() 
    {
        return achievementsDate;
    }
    public void setFullAttendanceDays(Integer fullAttendanceDays) 
    {
        this.fullAttendanceDays = fullAttendanceDays;
    }

    public Integer getFullAttendanceDays() 
    {
        return fullAttendanceDays;
    }
    public void setAttendanceDays(Integer attendanceDays) 
    {
        this.attendanceDays = attendanceDays;
    }

    public Integer getAttendanceDays() 
    {
        return attendanceDays;
    }
    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }
    public void setPieceMoney(BigDecimal pieceMoney) 
    {
        this.pieceMoney = pieceMoney;
    }

    public BigDecimal getPieceMoney() 
    {
        return pieceMoney;
    }
    public void setProductionQuantity(Long productionQuantity) 
    {
        this.productionQuantity = productionQuantity;
    }

    public Long getProductionQuantity() 
    {
        return productionQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("achievementsDate", getAchievementsDate())
            .append("fullAttendanceDays", getFullAttendanceDays())
            .append("attendanceDays", getAttendanceDays())
            .append("score", getScore())
            .append("pieceMoney", getPieceMoney())
            .append("productionQuantity", getProductionQuantity())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
